<!DOCTYPE html>
<html lang="en" class="md device-pixel-ratio-3 device-retina device-desktop device-windows support-position-sticky">

<head>
    <meta charset="utf-8" />
    <meta name="theme-color" content="#000000" />
    <meta name="viewport"
        content="width=device-width,user-scalable=no,initial-scale=1,maximum-scale=1,minimum-scale=1" />
    <link rel="apple-touch-icon" href="favicon.ico" />
    <meta name="apple-mobile-web-app-title" content="坏坏漫画\" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="format-detection" content="email=no" />
    <meta name="referrer" content="never">
    <script type="text/javascript" src="js/debug.js"></script>
    <link rel="shortcut icon" href="./favicon.ico" />
    <title>充值中心</title>
    <link href="css/main.48b4036a.css" rel="stylesheet">
    <link href="css/aui.css" rel="stylesheet" />
    <script type="text/javascript" src="js/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="js/layer.js"></script>
    <script type="text/javascript" src="js/jquery.lazyload.min.js"></script>
    <script type="text/javascript" src="js/template-web.js"></script>
    <script type="text/javascript" src="js/aui-toast.js"></script>
    <script type="text/javascript" src="js/aui-dialog.js"></script>
    <script type="text/javascript" src="js/config.js" charset="utf-8"></script>
    <div style="display: none;">
    </div>
</head>

<body>
    <div id="root" style="height: 100%;">
        <div id="framework7-root" class="framework7-root">
            <div class="panel-backdrop"></div>
            <div class="panel panel-left panel-reveal">
                <div id="chapterDirectory" class="page">
                    <div class="page-content">
                        <div class="block-title">目录</div>
                        <div class="no-margin-bottom list virtual-list">
                            <ul id="leftpannel" style="height: 5667.84px;">
                                <li class="bg-color-default text-color-primary"
                                    style="height: 0.48rem; top: 0px; font-size: 110%; font-weight: 700;"><a
                                        class="item-link" href="#">
                                        <div class="item-content">

                                            <div class="item-inner">
                                                <div class="item-title">第1話-&lt;1&gt;</div>
                                            </div>
                                        </div>
                                    </a></li>

                            </ul>
                        </div>
                    </div>
                </div>
            </div>
            <div class="panel panel-right panel-reveal">
                <!-- 侧边栏 -->
                <div class="page" id="right-page">
                    <script>
                        $("#right-page").load("right-page.html");
                    </script>
                </div>
            </div>
            <div class="view view-main">
                <style>
                    .my-input-title {
                        width: 30%;
                    }

                    .my-input-input {
                        width: 70%;
                    }

                    .my-input-input input {
                        border: 1px solid #928e8e;
                    }

                    .my-item-title {
                        text-align: center;
                    }

                    .my-li-border {
                        border-bottom: 1px solid #a9a9a9;
                        ;
                    }
                </style>
                <div class="view view-main">
                    <div class="page page-current" data-name="personalRecharge">
                        <div class="navbar">
                            <div class="navbar-inner sliding">
                                <div class="left"><a class="icon-only link icon-only back"
                                        href="/user.html"><i class="icon icon-back"></i></a></div>
                                <div class="title">储值中心</div>
                                <div class="right"><a class="link icon-only" href="/setting.html"><i
                                            class="icon material-icons">security</i></a></div>
                            </div>
                        </div>
                        <div class="page-content">
                            <div class="no-margin list">
                                <ul>
                                    <li class="">
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div class="reader-personal-recharge-header -margin-horizontal-md flex-grow-1">
                                                    <div class="user"><img class="avatar" src="/images/9.jpg" alt="">
                                                        <p class="name loginName">账号:klubhf</p>
                                                        <!-- <p class="name user-pass">密码 : 560937</p> -->
                                                    </div>
                                                    <div class="metas margin-top-sm">
                                                        <div class="meta">
                                                            <div class="name"><i class="icon_coin"></i>书币</div>
                                                            <div class="value bookCoin">86<label>剩余数量</label></div>
                                                        </div>
                                                        <div class="meta">
                                                            <div class="name"><i class="icon_vip"></i>VIP</div>
                                                            <div class="value">
                                                                <span class="font-size-16"> 未开通 </span>
                                                                <label>剩余：0小时</label>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </li>
                                    <div class="col-100"><img src="/images/336.png" alt=""
                                            class="margin-bottom-md" style="width: 100%; margin: 0px; display: block;">
                                    </div>
                                    <font size="5" color="#cc0000">
                                        <MARQUEE scrollAmount=3 behavior=alternate>·坏坏漫画3岁了 158 看半年 在送2万书币 价值800元【每天限3名】
                                        </MARQUEE>
                                    </font>
                                    <span class='mycol'>付款后，等待5秒页面自动返回，其他问题 联系客服 ！</span>
                                    <li class="normal-divider-line item-divider"><span></span></li>
                                    <li class="">
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div
                                                    class="reader-personal-recharge-option-group -margin-vertical-sm row">
                                                    <div class="col-100">
                                                        <div class="reader-personal-recharge-option-group-title"><i
                                                                class="icon_coin"></i>书币充值</div>
                                                    </div>
                                                    <div class="margin-bottom-md col-50" data-pid="11">
                                                        <div class="product reader-personal-recharge-option elevation-5"
                                                            data-pid="11"> <a class="content link" href="#">
                                                                <div>
                                                                    <div class="text-color-primary">98元</div>
                                                                    <div class="desc">
                                                                        9800+9800书币
                                                                        <span class="text-color-primary">充1送1</span>
                                                                    </div>
                                                                </div>
                                                            </a>
                                                            <i class="reader-image-icon hot"
                                                                style="background-image: url(/images/hot.png);"></i>
                                                            <span class="statustj"></span>
                                                        </div>
                                                    </div>
                                                    <div class="margin-bottom-md col-50" data-pid="3">
                                                        <div class="product reader-personal-recharge-option elevation-5"
                                                            data-pid="3"> <a class="content link" href="#">
                                                                <div>
                                                                    <div class="text-color-primary">48元</div>
                                                                    <div class="desc">
                                                                        4800+2800书币
                                                                        <span class="text-color-primary">多送28元 </span>
                                                                    </div>
                                                                </div>
                                                            </a>

                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </li>

                                    <body>
                                        <font color="#0000FF">坏坏漫画3岁了每天限3名</font>
                                        <a class="time" style="color:#cc0000;font-size:30px;"></a>
                                        <font color="#0000FF"> 活动倒计时</font>
                                        <script>
                                            var starttime = new Date("2021/11/16");
                                            setInterval(function () {
                                                var nowtime = new Date();
                                                var time = starttime - nowtime;
                                                var day = parseInt(time / 1000 / 60 / 60 / 24);
                                                var hour = parseInt(time / 1000 / 60 / 60 % 24);
                                                var minute = parseInt(time / 1000 / 60 % 60);
                                                var seconds = parseInt(time / 1000 % 60);
                                                $('.time').html(day + "天" + hour + "时" + minute + "分" + seconds + "秒");
                                            }, 1200);
                                        </script>
                                    </body>

                                    <li class="normal-divider-line item-divider"><span></span></li>
                                    <li class="">
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div
                                                    class="reader-personal-recharge-option-group -margin-vertical-sm row">
                                                    <div class="col-100">
                                                        <div class="reader-personal-recharge-option-group-title"><i
                                                                class="icon_vip"></i>VIP充值</div>
                                                    </div>
                                                    <div class="margin-bottom-md col-50">
                                                        <div class="product reader-personal-recharge-option elevation-5"
                                                            data-pid="32"> <a class="content link" href="#">
                                                                <div>
                                                                    <div class="text-color-primary">坏坏3岁了 / 158元</div>
                                                                    <div class="desc">
                                                                        双站半年卡 再送2万书币！每天限3名 <span
                                                                            class="text-color-primary"></span>
                                                                    </div>
                                                                </div>
                                                            </a>
                                                            <i class="reader-image-icon hot"
                                                                style="background-image: url(/images/hot.png);"></i>
                                                            <span class="statustj"></span>
                                                        </div>
                                                    </div>
                                                    <div class="margin-bottom-md col-50">
                                                        <div class="product reader-personal-recharge-option elevation-5"
                                                            data-pid="41"> <a class="content link" href="#">
                                                                <div>
                                                                    <div class="text-color-primary">VIP双站季卡 / 98元</div>
                                                                    <div class="desc">
                                                                        活动限时98 原价238 <span
                                                                            class="text-color-primary"></span>
                                                                    </div>
                                                                </div>
                                                            </a>
                                                            <i class="reader-image-icon hot"
                                                                style="background-image: url(/images/hot.png);"></i>
                                                            <span class="statustj"></span>
                                                        </div>
                                                    </div>
                                                    <div class="margin-bottom-md col-50">
                                                        <div class="product reader-personal-recharge-option elevation-5"
                                                            data-pid="6"> <a class="content link" href="#">
                                                                <div>
                                                                    <div class="text-color-primary">VIP月卡 / 68元</div>
                                                                    <div class="desc">
                                                                        限时活动价原价128 <span
                                                                            class="text-color-primary"></span>
                                                                    </div>
                                                                </div>
                                                            </a>
                                                            <i class="reader-image-icon hot"
                                                                style="background-image: url(/images/hot.png);"></i>
                                                        </div>
                                                    </div>
                                                    <div class="margin-bottom-md col-50">
                                                        <div class="product reader-personal-recharge-option elevation-5"
                                                            data-pid="12"> <a class="content link" href="#">
                                                                <div>
                                                                    <div class="text-color-primary">VIP双站年卡 / 238元</div>
                                                                    <div class="desc">
                                                                        限时活动价，送网盘版 原价498 <span
                                                                            class="text-color-primary"></span>
                                                                    </div>
                                                                </div>
                                                            </a>
                                                            <i class="reader-image-icon hot"
                                                                style="background-image: url(/images/hot.png);"></i>
                                                            <span class="statustj"></span>
                                                        </div>
                                                    </div>
                                                    <div class="margin-bottom-md col-50">
                                                        <div class="product reader-personal-recharge-option elevation-5"
                                                            data-pid="30"> <a class="content link" href="#">
                                                                <div>
                                                                    <div class="text-color-primary">皇帝会员 / 328元</div>
                                                                    <div class="desc">
                                                                        双站永久，全套网盘版，热门福利群（筹备中） <span
                                                                            class="text-color-primary"></span>
                                                                    </div>
                                                                </div>
                                                            </a>
                                                            <i class="reader-image-icon hot"
                                                                style="background-image: url(/images/hot.png);"></i>
                                                            <span class="statustj"></span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </li>
                                    <li class="normal-divider-line item-divider"><span></span></li>
                                    <li class="">
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div class="item-title">選擇儲值方式</div>
                                                <div class="item-after"><span>選擇套餐儲值，自動到賬</span></div>
                                            </div>
                                        </div>
                                    </li>

                                    <li class="">
                                        <label class="item-content item-radio">
                                            <input name="pay-type-radio" type="radio" value="2" checked="">
                                            <i class="icon icon-radio"></i>
                                            <div class="item-inner">
                                                <div class="font-size-12 line-height-24 text-color-gray">
                                                    <div>
                                                        <font color="red">支付寶儲值</font>
                                                    </div>
                                                </div>
                                                <div class="item-after line-height-24">支付寶快捷儲值 <i
                                                        class="reader-image-icon margin-left-sm"
                                                        style="background-image: url(/images/alipay.png);"></i>
                                                </div>
                                            </div>
                                        </label>

                                    </li>
                                    <li class="normal-divider-line item-divider"><span></span></li>
                                    <li class="text-align-center"><a class="item-link list-button color-white" href="#"
                                            data-tab="false" id="pay" onclick="javascript:pay_alipay();"
                                            style="background: #f15a22;line-height:.38rem; font-size:.19rem;border-radius: 30px">
                                            立即支付</a></li>

                                    <li class="normal-divider-line item-divider"><span></span></li>
                                    <li class="text-align-center my-li-border">
                                        <a class="item-link list-button aui-text-primary" href="" target="_blank"
                                            data-tab="false"> 购买卡密</a>
                                    </li>
                                    <li class="">
                                        <div class="item-content">
                                            <div class="item-inner">
                                                <div class="my-input-title">长按粘贴卡密
                                                    <div class="item-title my-item-title">输入卡密：</div>
                                                </div>
                                                <div class="my-input-input">
                                                    <input type="text" class="cdk">
                                                </div>
                                                <!-- <div class="item-title">选择支付方式</div> -->
                                                <!-- <div class="item-after"><span>1元=100书币</span></div> -->
                                            </div>
                                        </div>
                                    </li>
                                    <li class="text-align-center my-li-border" onclick="javascript:pay_fruit();"><a
                                            class="item-link list-button color-red" href="#" data-tab="false"
                                            style="font-size: 0.18rem;">立即激活</a></li>
                                </ul>
                                <form action="/home/order/add.html" method="post" id="formId">
                                    <input type="hidden" id="pro_id" name="pro_id" value="">
                                    <input type="hidden" id="paydata" name="paydata" value="">
                                </form>
                            </div>
                            <div class="padding font-size-12 text-color-gray text-align-center">
                                <p class="title-with-decorative-strip">温馨提示:</p>
                                <p>· 1、开通VIP的用户无需购买阅读币，免费观看所有内容</p>
                                <p>· 2、如果支付后出现未到账的情况，请联系客服处理</p>
                                <p>· 3、您的游客账号为系统自动生成，请充值前后务必绑定手机号，以便丢失游客账号时作为账号登陆使用</p>
                                <p>· 4、本产品为虚拟产品，一旦购买将不退款，敬请谅解。</p>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <div class="framework7-modals"></div>
            <div class="actions-backdrop"></div>
            <div class="dialog-backdrop"></div>
            <div class="dialog dialog-buttons-1 dialog-buttons-vertical reader-copy-modal modal-in"
                style="display: none; margin-top: -372px;">
                <div class="dialog-inner">
                    <div class="dialog-title"></div>
                    <div class="dialog-text"></div>
                    <input id="foo" type="link" value="" readonly="">
                </div>
                <div class="dialog-buttons">
                    <span class="dialog-button dialog-button-bold text-align-center text-color-primary"
                        data-clipboard-action="copy" data-clipboard-target="#foo">复制链接</span>
                </div>
            </div>
            <div class="popover-backdrop"></div>
            <div class="toast">
                <div class="toast-content">
                    <div class="toast-icon"></div>
                    <div class="toast-text"></div>
                    <a class="toast-button"></a>
                </div>
            </div>

        </div>
    </div>
    <script type="text/javascript" src="js/yymh.js"></script>
    <script src="js/clipboard.min.js"></script>

    <script type="text/javascript">
        $(function () {

            $.ajax({
                url: baseApi + "/carton/app/user",
                type: 'get',
                headers:{'authToken':localStorage.getItem("authToken")},
                success: function (data) {
                    if (data.code === 0) {
                        $(".loginName").html(data.data.loginName);
                        $(".bookCoin").html(data.data.bookCoin);
                        $(".avatar").attr("src",data.data.avatar);
                    }else{
                        window.location.href="/login.html";
                    }
                }
            });

            $('.product').on('click', function () {
                if ($(this).attr('checked') != 'checked') {
                    $('[checked="checked"]').removeClass('reader-personal-recharge-option-checked').addClass('reader-personal-recharge-option');
                    $(this).removeClass('reader-personal-recharge-option').addClass('reader-personal-recharge-option-checked');
                    $('[checked="checked"]').attr('checked', false);
                    $(this).attr('checked', 'checked');
                    proId = $('[checked="checked"]').attr('data-pid');
                    $('#pro_id').val(proId);
                } else {

                }

            });

            if ($('.default').length > 0) {
                $('.default').trigger("click");
            } else {
                $('.product:first').trigger("click");
            }
        });

        /*js支付配置*/
        function pay_alipay() {
            var paydata = $("input[type='radio']:checked").val();
            $('#paydata').val(paydata);
            var pro_id = $('#pro_id').val();
            if (!pro_id) {
                toastMsg('您还没选择要充值的产品呢!!!');
                return;
            }
            $.ajax({
                type: "POST", //提交方式
                url: "/home/order/add.html",
                dataType: 'json',
                data: {
                    paydata: paydata,
                    pro_id: pro_id
                },
                success: function (result) {
                    if (result) {
                        setTimeout(function () {
                            if (result.status == 1) {
                                //刷新弹窗
                                setTimeout(function () {
                                    window.location.reload();
                                }, 3000);
                                //跳转
                                window.location.href = result.msg;
                            } else
                                toastMsg(result.msg);
                        }, 500);
                    }
                }
            });
        }
        
        function pay_fruit() {
            var cdk = $('.cdk').val();
            if (!cdk) {
                toastMsg('请输入卡密!!!');
                return;
            }
            appCenter.doHeaderPost(baseApi + "/carton/app/fruit",{'cdk': cdk},{'authToken':localStorage.getItem("authToken")},function (data) {
                if (data) {
                    setTimeout(function () {
                        if (data.code == 0) {
                            //刷新弹窗
                            toastMsg(data.msg);
                            setTimeout(function () {
                                //跳转
                                window.location.href = '/user.html';
                            }, 3000);
                        } else
                            toastMsg(data.msg);
                    }, 500);
                }
            })
            
        }
    </script>

</body>
</html>